#-*- coding:gbk -*-
'''
Created on 2012-7-23

@author: xxy
'''
import game_object

class WorldObject(game_object.GameObject):
    def __init__(self, name, guid = None):
        game_object.GameObject.__init__(self, name, guid)
        self.m_position = (0, 0)
        self.m_dest_postion = (0, 0)
        self.m_map_id = -1
        
    def setPosition(self, point):
        self.m_position = point
        
    def getPosition(self):
        return self.m_position
    
    def setDestPosition(self, point):
        self.m_dest_postion = point
        
    def getDestPosition(self):
        return self.m_dest_postion
    
    def getMapId(self):
        return self.m_map_id
    
    def setMapId(self, map_id):
        self.m_map_id = map_id